/*
 * @Description: 推文显示主体
 * @Author: YWJ 
 * @Date: 2022-04-23 11:40:39 
 * @Last Modified by: YWJ
 * @Last Modified time: 2022-05-09 00:28:14
 */

<template>
  <div class="demo4">
    <p>{{ text }}</p>
      <div class="demo3">
        <el-image
           v-for="(item, index) in pic" :key="index"
          style="width: 120px; height: 120px ;margin-right:15px"
          :src="'http://chm.pengdong.top/index/get/' + pic[index]"
          :preview-src-list="previewList"
          fit="scale-down"
        ></el-image>
      </div>
  </div>
</template>

<script>
export default {
  props: {
    text: String,
    pic: Array,
    previewList:Array
  },

  // created(){
  //   for(var i = 0;i < this.lengt; i++){
  //   this.previewList[i] = 'http://chm.pengdong.top/index/get/'+this.pic[i]
  //   }
  
  // }

};
</script>

<style>
.demo3 {
  display: flex;
  width: 500px;
  height: auto;
  flex-wrap: wrap;
  margin-top: 20px;
}

.demo4{
    margin-left: 50px;
    margin-top: 20px;
}


</style>